
#include <Inklude/ikCTaskGroup.h>
#include <tbb/task_group.h>
#include <tbb/parallel_invoke.h>

using namespace Inklude;

ikCTaskGroup::ikCTaskGroup()
{
    m_pTaskGroup = new tbb::task_group();
}

ikCTaskGroup::~ikCTaskGroup()
{
    SAFE_DELETE(m_pTaskGroup);
}

inline void ikCTaskGroup::Run(std::function<void()>& Func)
{
    m_pTaskGroup->run(Func);
}

inline void ikCTaskGroup::Wait()
{
    m_pTaskGroup->wait();
}

